package com.finer.service;

import com.finer.entity.ResponseMessage;
import com.finer.entity.document.FinerGoodUnit;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;

import java.util.Map;

/**
 * 商品单位表(FinerGoodUnit)表服务接口
 *
 * @author makejava
 * @since 2024-10-21 10:20:37
 */
public interface FinerGoodUnitService {

    /**
     * 通过ID查询单条数据
     *
     * @param id 主键
     * @return 实例对象
     */
    ResponseMessage queryById(Integer id);

    /**
     * 修改数据
     *
     * @param finerGoodUnit 实例对象
     * @return 实例对象
     */
    ResponseMessage update(FinerGoodUnit finerGoodUnit);


    ResponseMessage selByPage(Map map);

    /**
     *
     * @param finerGoodUnit
     * @return
     */
    ResponseMessage addUnit(FinerGoodUnit finerGoodUnit);

    /**
     *
     * @param id
     * @return success
     */
    ResponseMessage delUnitById(Integer id);
}
